cmake_minimum_required(VERSION 2.8)

project(cppreco)

ADD_DEFINITIONS("-Wall -ansi -pedantic")


#Inclusion de opencv
include_directories(${opencv_include_dir})
link_directories(${opencv_link_dir})

add_subdirectory(src)
add_subdirectory(tests)
enable_testing()

find_package(Doxygen)

if(DOXYGEN_FOUND)
configure_file(${PROJECT_SOURCE_DIR}/doc/Doxyfile.in ${PROJECT_SOURCE_DIR}/doc/Doxyfile @ONLY)
add_custom_target(doc ALL ${DOXYGEN_EXECUTABLE} ${PROJECT_SOURCE_DIR}/doc/Doxyfile COMMENT "Generating API documentation with Doxygen" VERBATIM)
endif(DOXYGEN_FOUND)

